require('dotenv').config()

const db = require('mongoose');

db
	.connect(process.env.DB_SRV, {
		useUnifiedTopology: true,
		useNewUrlParser: true
	})
	.then(() => console.log('DB Terhubung'))
	.catch(err => console.log('DB tidak bisa terhubung'))
